<div id="edit_event">
	<div id="edit_event_handle">			
		<a href="#" id="close">X</a>
		<span class="title"></span>
	</div>
	<div id="edit_event_content">
	<form id="edit_event_form" method="post" action="php/jqalendar.php?a=edit_event">
	<input type="hidden" id="EventId" name="event[id]">
	<div id="fields">
    
    	<div class="box">
			<div class="label">Oggetto</div>
			<div class="widget"><input type="text" name="event[summary]" id="EventSummary"></div>			
		</div>
        
		<div class="box">
			<div class="label">Quando</div>
			<div class="widget">
			<input type="text" class="date date-pick" name="event[start]" id="EventStart"> 
			<input type="text" class="time" name="event[starttime]" value="00:00" id="EventStarttime">
			 al 
			 <input type="text" class="time" value="00:00" name="event[endtime]" id="EventEndtime">  
			 <input type="text"  class="date date-pick" name="event[end]" id="EventEnd">
			<input type="hidden" id="_EventAllday" value="0" name="event[allday]"><input  name="event[allday]" type="checkbox" id="EventAllday" value="1" checked>
			<label for="EventAllday">Tutto il giorno</label>
			</div>
		</div>
		
		<div class="box">
			<div class="label">Si ripete</div>
			<div class="widget">
            <select name="repeated_event[type]" id='EventsRepeatType'>
				<? foreach($options['repeat_types'] as $key=>$value):?>
                    <option value="<?=$key?>"><?=$value?></option>
                <? endforeach;?>
			</select>
			</div>
			<div id='daily' class='repeat_options' style="display:none ">
				Ripeti ogni:&nbsp;<input type="text" value="1" size="1" name="repeated_event[frequency]" id='EventsRepeatFrequency'> giorni <br />
			</div>
			<div id='weekly' class='repeat_options'  style="display:none ">
				Ripeti ogni:&nbsp;<input type="text" value="1" size="1" name="repeated_event[frequency]" id='EventsRepeatFrequency'> settimane <br />
				Ripeti il: &nbsp;
			  <input type="checkbox" value="1"  name="repeated_event[days][1]" id='EventsRepeatDays_1'>L&nbsp;
			  <input type="checkbox" value="1"  name="repeated_event[days][2]" id='EventsRepeatDays_2'>M&nbsp;
			  <input type="checkbox" value="1"  name="repeated_event[days][3]" id='EventsRepeatDays_3'>M&nbsp;
			  <input type="checkbox" value="1"  name="repeated_event[days][4]" id='EventsRepeatDays_4'>G&nbsp;
			  <input type="checkbox" value="1"  name="repeated_event[days][5]" id='EventsRepeatDays_5'>V&nbsp;
			  <input type="checkbox" value="1"  name="repeated_event[days][6]" id='EventsRepeatDays_6'>S&nbsp;
			  <input type="checkbox" value="1"  name="repeated_event[days][0]" id='EventsRepeatDays_0'>D&nbsp;
				<br />
			</div>
			<div id='monthlyByDate' class='repeat_options' style="display:none ">
				Ripeti ogni:&nbsp;<input type="text" value="1" size="1" name="repeated_event[frequency]" id='EventsRepeatFrequency'> mesi <br />
			</div>
			<div id='yearly' class='repeat_options' style="display:none ">
				Ripeti ogni:&nbsp;<input type="text" value="1" size="1" name="repeated_event[frequency]" id='EventsRepeatFrequency'> anni <br />
			</div>
		  <div id='interval' class='repeat_options' style="display:none ">Termina:&nbsp;
              <label><input name="repeated_event[repeat_end]" type="radio" id="repeat_end_0" value="0" checked>Never</label>
              &nbsp;
              <label><input type="radio" name="repeated_event[repeat_end]" value="1" id="repeat_end_1">
              Until </label><input type="text" class="date date-pick" name="repeated_event[repeat_end_date]" id="EventsRepeatEndDate">
				<br />
				<br />
		  </div>		
		</div>	
		
		<div class="box">
			<div class="label">Luogo</div>
		  <div class="widget"><input type="text" name="event[location]" id="EventLocation"></div>			
		</div>
	

		
		<div class="box">
			<div class="label">Descrizione</div>
			<div class="widget"><textarea name="event[description]" id="EventDescription" style="width:85%; height:85px"></textarea></div>			
		</div>

		</div>
		<br/>
			<input type="submit" name="submit" value="Save" id="btnSave"/>
			<input name="cancel" type="button" value="Cancel" id="btnCancel">
			<input name="delete" type="button" value="Delete" id="btnDelete" style="display:none">
	  </form>
	</div>
</div>
